package 第七周.experiment;

public  class Cow extends Animal {

    public Cow(String name, int id) {
        super(name, id);
    }

    public void eat() {
        System.out.println("我饿了，我要吃草！");
    }

    public void sleep() {
        System.out.println("吃饱了我想睡觉！");
    }

    public void introduction() {
        System.out.println("我是"+getName() +""+ "我的ID是"+getId());
    }
}

